package com.ms.pda.utils.frid

import android.app.Activity
import com.blankj.utilcode.util.SPUtils
import com.ms.pda.model.Constants

abstract class BaseFridManager(
    var activity: Activity?,
    var onRfidEventsListener: OnRfidEventsListener?
) {
    protected val signalIntensity: Int by lazy {
        SPUtils.getInstance()
            .getInt(Constants.SIGNAL_INTENSITY_KEY, Constants.SIGNAL_INTENSITY_DEFAULT)
    }


    protected val frequency: Int by lazy {
        SPUtils.getInstance()
            .getInt(Constants.FREQUENCY_KEY, Constants.FREQUENCY_DEFAULT)
    }


    abstract fun connect()

    abstract fun onDestroy()
}